package com.hbnrtech.sip.dao.model;

import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
    @author liuduo
    @date 2025-04-22 15:51
*/

/**
 * 存储设备的通道信息 (来自 Catalog 查询)
 */
@Data
@Builder
public class SipDeviceChannel {
    /**
     * 通道国标ID (通常20位)
     */
    private String channelId;

    /**
     * 所属设备的国标ID
     */
    private String deviceId;

    private String name;

    /**
     * 父目录或设备的ID (用于树状结构)
     */
    private String parentId;

    private String manufacturer;

    private String model;

    private String owner;

    private String civilCode;

    private String address;

    /**
     * 是否为父目录 (1:是, 0:否)
     */
    private Integer parental;

    private Integer safetyWay;

    private Integer registerWay;

    private Integer secrecy;

    /**
     * 通道自身状态 (ON/OFF/DEFECT)
     */
    private String status;

    private BigDecimal longitude;

    private BigDecimal latitude;

    private Integer ptzType;

    /**
     * 存储其他或不常用的属性 (JSONB格式)
     */
    private Object extraInfo;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;
}